Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD authored Mar 10, 2020
2 parents 67f6286 + c3e359f commit 0fbc808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/check_thingspeak.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

function is_channel_correct($writeKey)
{
$filename = 'https://api.thingspeak.com/update?api_key='.$writeKey.'&field1=0';
$filename = 'http://api.thingspeak.com/update?api_key='.$writeKey.'&field1=0';
$check = "0";
try {
$content = @file_get_contents($filename);
Expand Down
3 changes: 3 additions & 0 deletions backend/shell-scripts/change_router_ssidpw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ pw=$2;

sudo sed -i "s/psk=.*/psk=\"$pw\"/" /etc/wpa_supplicant/wpa_supplicant.conf;
sudo sed -i "s/^[[:blank:]]*ssid=.*/ssid=\"$ssid\"/" /etc/wpa_supplicant/wpa_supplicant.conf;

# connect to wifi without reboot
sudo wpa_cli -i wlan0 reconfigure

0 comments on commit 0fbc808

Please sign in to comment.