I wrote an Openhab-to-Thingspeak bash script

I wanted data redundancy available online so using the OH REST api and cURL I wrote a bash script to export my OH items (last state) to a Thingspeak channel every 15 minutes (script writes info to file in local directory which you can add to crontab).


  • thingspeak channel established (write API key)
  • openhab item names
  • ability to query OH server using OH REST

Please see my repo for the script