Matt W1CDN
  • Joined on 2023-04-08
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-06 21:36:27 -05:00
Set up scheduled program cycles

Ooooh, so close. Going to attack #15 now.

W1CDN commented on issue W1CDN/vulpes#15 2023-09-06 20:24:20 -05:00
Fill in selected values for select menus on webform

Do this with JS.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-06 20:15:56 -05:00
Set up scheduled program cycles

No luck on double submit, but I managed to

  • fill in the start time so it doesn't dissapear
  • introduce a bug because the start time that's filled in gets converted to local time from local…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-06 19:29:15 -05:00
Set up scheduled program cycles

Did a Full Clean/Build Filesystem Image/Upload Filesystem Image/Upload and Monitor.

The empty start time/broken JS seems to be fixed by b97f48858d7e1ac706e74d34a70b301af7a839cb.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-06 18:03:37 -05:00
Set up scheduled program cycles

Wow did I ever get messed up there.

If the start date isn't set, a value isn't added to the JS, so it just sees s = ; and breaks everything else in the script. Which means you can't put in a…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-06 16:59:48 -05:00
Set up scheduled program cycles
  • bug: when a start time is submitted, the form submits twice
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-06 16:45:16 -05:00
Set up scheduled program cycles

Way overthinking this. Time is coming from browser in the first place. If I want to print it, print it from the browser, don't pull it from the controller.

W1CDN commented on issue W1CDN/aprs_tool#37 2023-09-06 14:18:34 -05:00
KISS connection seems unstable

Trying this

from apscheduler.schedulers.blocking import BlockingScheduler
...
    ki.start()

    scheduler = BlockingScheduler()
    scheduler.add_job(refresh_kiss_connection,…
W1CDN commented on issue W1CDN/aprs_tool#37 2023-09-06 08:45:55 -05:00
KISS connection seems unstable

Haven't seen a packet in this system in four days, but there should have been a bunch yesterday.

Trying to think of how to keep the connection alive without cron or some other timer. I would do…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-05 21:17:57 -05:00
Set up scheduled program cycles

It's not horrible. image

When I try to format the date differently than return rtc.now().timestamp();, like toString(), the device…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-05 21:13:25 -05:00
Set up scheduled program cycles

All back on local time now. The current time is saved with an epoch shift according to the timezone offset in JS. The start program time is local by default from the HTML form. Both are stored as…

W1CDN opened issue W1CDN/vulpes#26 2023-09-05 20:39:44 -05:00
Handle DST
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-05 20:34:55 -05:00
Set up scheduled program cycles

Oh no, DST. The time zone adjustment doesn't know about it.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-05 16:49:59 -05:00
Set up scheduled program cycles

Holy buckets do js missing brackets break everything.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-05 14:05:41 -05:00
Set up scheduled program cycles

Maybe I'll go back and make it use local time everywhere.

W1CDN closed issue W1CDN/vulpes#25 2023-09-05 11:08:58 -05:00
Update webform values on submit
W1CDN commented on issue W1CDN/vulpes#25 2023-09-05 11:08:53 -05:00
Update webform values on submit

Closed in 2060df96917d853942ba03af9b23ef3795bea2f9.

W1CDN opened issue W1CDN/vulpes#25 2023-09-04 21:56:03 -05:00
Update webform values on submit
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-04 21:54:20 -05:00
Set up scheduled program cycles

I can get the submitted unix time copied into a file/variable, but it might be local time rather than UTC?

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-04 21:18:26 -05:00
Set up scheduled program cycles

HTML field is datetime-local, which needs to be labeled as UTC.

https://www.w3schools.com/tags/att_input_type_datetime-local.asp

Comes out as 2023-09-02T05:34 format.