Updated July 26, 2019: I am using a combination of Echo Dot generation 1 and generation 3 here in Spain.
I am using port 8980 to avoid being the hated Linux ROOT user and so now, on my main Pi 3, I moved the web server to port 86 and using “iptables” have redirected port 8980 traffic to port 80 to keep Amazon happy while continuing to use port 8980 to keep Linux happy as user Pi. This all seems to work well.
As a Node-Red fan I am using node-red-contrib-amazon-echo to simulate Amazon Alexa capabilities in some devices – this allows me to easily use a reprogrammed Sonoff mains controller using my own ESP-GO software with a GPIO pin controlling some serial RGB LEDs – and NR with node-red-contrib-amazon-echo to not only turn on and off the LED strip but also to fine-tune the colour by voice alone.
sudo apt-get install iptables-persistent
sudo iptables -I INPUT 1 -p tcp –dport 80 -j ACCEPT
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 8980
sudo netfilter-persistent save
sudo netfilter-persistent reload
Meanwhile on a different note, I learned that to use Tasmota with Flash-limited Sonoffs – you can flash in 2 stages thanks to a minimal intermediate version which still handles MQTT:
Below I’m loading sonoff.bin rather than sonoff-basic.bin – the latter requires this 2-step OTA but has more stuff built into it (sensors).
and to change SSIDs on Tasmota-equipped boards….
payload: ssid1 whatever; ssid2 mypass
And to monitor all status info for Tasmotas in Node-Red:
and subscribe to topic:
See also Andreas Spiess YouTube video here (https://www.youtube.com/watch?v=JdV4x925au0) for setting up Raspbian with Grafana and InfluxDB using my “the script” which you’ll find referred to around the blog.