bool myCallback(int value) {
// here your custom logic
return status;
}
I was working on a custom firmware for ESP8266 using the famous Arduino library and I wanted to create a websocket server. I also wanted the EPS to serve the web page that acts as a websocket server (having the ESP in AP mode).
The awesome library ArduinoWebSockets is very easy to set up and make the ESP serve websockets connections on port 81. The thing is that when I was opening a browser at http://192.168.4.1:81 I had this message: "This is a Websocket server only!". Wow! This means that ESP is capable of returning a http message to the browser! This also means that the message could be tweaked to include the actual html page with the websocket JS client!
I looked at the library file WebSocketsServer.h and found that the method handleNonWebsocketConnection
was the one sending this message.
Install ExifTool and run the following in a terminal:
exiftool -geotag="/path/to/your/GPS/track.kml" -geosync=7:00:00 /path/to/your/photos/folder
The geosync
parameter is used when your GPS track is not in the same timezone as your photos. In the above example the GPS track is in the UTC timezone while the photos are in UTC-7.
This is how you convert GPX files (or any other file) to fit for the Navilink software / Locosys BGT-31 GPS.
Install GPSBabel then run the following in your terminal:
gpsbabel -i gpx -f your-input-file-name.gpx -o ozi -F your-waypoint-file-name
This Gist shows how to quickly sort the Instructables entries in a contest.
First you need to know the Contest ID. Follow the steps:
- Open the developper tools of your browser and navigate to the contest page
- in the network tab search for
getContestEntries.json