Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the main script (process name) #7

Merged
merged 1 commit into from
Sep 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .idea/CBJ_Smart-Device.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

134 changes: 134 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ This part is using the snap store in order to have easy way to update all the de

Copy [the script](https://github.com/CyBear-Jinni/CBJ_Smart-Device/blob/master/Scripts/Scripts_for_new_device/setup_new_smart_device.sh) to your device,
change the values wifiSsid into the name of your Wi-Fi and wifiPassword into the Wi-Fi password, it is necessary so that your device will be able to connect to the Wi-Fi.

Now run the script and it will configure and install the program to your device.

It is recommended to lock the IP of the smart device in the router settings if you intend to use the local option and not just the remote (that is using google Firebase platform).
Expand Down
7 changes: 2 additions & 5 deletions SmartDevice/scripts/bashScripts/nativeExecutableMaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

echo "Making native executable of the project"

scripts/bashScripts/dartSdkDownload.sh # Downloading dart-sdk for the correct architecture.
scripts/bashScripts/dartSdkDownload.sh # Downloading dart-sdk for the correct architecture.

unzip dartsdk-*.zip

Expand All @@ -12,10 +12,7 @@ cd SmartDeviceDart
cd ..

#chmod -R +rx dart-sdk/
dart-sdk/bin/dart2native SmartDeviceDart/bin/main.dart

mv SmartDeviceDart/bin/main.exe .

dart-sdk/bin/dart2native SmartDeviceDart/bin/main.dart -o CyBear-Jinni_Smart-Device

rm dartsdk-*.zip
rm -r dart-sdk/
4 changes: 2 additions & 2 deletions SmartDevice/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: cybear-jinni
base: core20
version: '0.1.0' # Just for humans, typically '1.2+git' or '1.3.2'
version: '0.1.1' # Just for humans, typically '1.2+git' or '1.3.2'
summary: Smart home snap for CyBear Jinni smart devices.
description: |
A CyBear Jinni snap for smart devices.
Expand Down Expand Up @@ -62,6 +62,6 @@ parts:

apps:
cybear-jinni:
command: main.exe $SNAP
command: CyBear-Jinni_Smart-Device $SNAP
daemon: simple
plugs: [network, network-bind, gpio, hardware-observe]