Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

I will not go into setting up the https://github.com/calmjm/tojota as such, but as the code does make date-marked files, I am changing the code to make a stic static filename instead:. This must be done every time a new version is pulled from guthub.

These lines are mine (replacing existing lines):

Kodeblok
# coding=utf-8

odometer_file = odometer_path / 'odometer.json'

parking_file = parking_path / 'parking.json'

remote_control_file = remote_control_path / 'remote_control.json'

making sure is a static file each time, that is just overwrittingbeing overwritten.

I am running the this code from cron to get the data from MyT:

Kodeblok
languagebash
titletojota.sh
#!/bin/bash

cd /home/bnp
source /home/bnp/tojota/bin/activate
export PYTHONIOENCODING=utf8
cd /home/bnp/tojota
python tojota.py

...