Readme.md #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ThingSpeak Simulator | ||
| on: | ||
| schedule: | ||
| - cron: '*/5 * * * *' # every 5 minutes | ||
| workflow_dispatch: | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install deps | ||
| run: pip install requests | ||
| - name: Publish reading | ||
| env: | ||
| THINGSPEAK_WRITE_KEY: ${{ secrets.5FQJPLPUDF1BVP7O}} | ||
| run: python simulator_post_once.py | ||