Browse Source

Serbur: renamed esp8266_ac to esp12e_ac cuz esp8266 is the actual microchip but we designed that shit with the ESP-12E module in mind

Wazakindjes 1 year ago
parent
commit
874e4e8e40
2 changed files with 7 additions and 7 deletions
  1. 3 3
      serbur/muhconf.ini.example
  2. 4 4
      serbur/rem0t0.pl

+ 3 - 3
serbur/muhconf.ini.example

@@ -227,12 +227,12 @@
 	map_pause = TV_PAUSE
 	map_forward = TV_FORWARD
 
-[esp8266_ac]
-	remotename = esp8266_ac
+[esp12e_ac]
+	remotename = esp12e_ac
 	schedulem = 0
 
 	# No mappings required as this shit is kinda special, it does require some API parameters doe ;];]
 	# Also if you're using HTTPS on yo ESP then make sure the device running the Perl server skrip trusts the cert used by it (by using the ca_dir option in the [main] section)
-	api_url = https://esp8266-ac.home.lan:1339/h4x
+	api_url = https://esp12e-ac.home.lan:1339/h4x
 	api_auth_header = X-Bighecks-Auth
 	api_auth_token = ec8534d2ff2917903e6071a6049274b3f0f1516780760d8be78c6b9082521023

+ 4 - 4
serbur/rem0t0.pl

@@ -18,7 +18,7 @@ use LWP::UserAgent;
 use Time::Local;
 
 # Better not touch these niQQa ;]
-my $MUHVERSION = '1.5.0';
+my $MUHVERSION = '1.5.1';
 my $PING_NOAUTH = -3;
 my $PING_DED = -2;
 my $PING_EXIT = -1;
@@ -82,7 +82,7 @@ my @checkem_schedule = (
 );
 my %checkem_remote_options = (
 	# Some remotes may have special options =]
-	esp8266_ac => [
+	esp12e_ac => [
 		# This one requires a URL to send POST requests to and a token for a special authorisation headur
 		'api_url', 'api_auth_token', 'api_auth_header',
 	],
@@ -124,7 +124,7 @@ my %mappem = (
 		'stop', 'rewind', 'play', 'pause', 'forward',
 	],
 
-	esp8266_ac => [
+	esp12e_ac => [
 		'read_temp',
 		'servo_rotate', 'servo_acbutton', 'servo_reset',
 		'led_onboard', 'led_flasher', 'led_error', 'led_http',
@@ -889,7 +889,7 @@ sub main_lewp {
 						next;
 					}
 
-					if($buf =~ /!(esp8266_ac)(?:_(cont|stop))? ([^\s]+)(?: ([^\s]+))?/i) {
+					if($buf =~ /!(esp12e_ac)(?:_(cont|stop))? ([^\s]+)(?: ([^\s]+))?/i) {
 						# We're simply allowing the cont/stop suffix so we don't have to fuck up the Android app with separate touch listeners for ESP shit
 						# For many commands it doesn't even make sense to continuously send a command (like why would you repeat a reb00t lol) and LEDs have separate buttons for on/off
 						my $cmdbase = $1;