Open jadudm opened 3 years ago
This now requires more testing before another build happens. This was necessary to make cache-to-sqlite
work, which is necessary for testing the local generation of images. (Which is really only necessary for checking on data that is generated by sensors other than the one in hand...)
Made these changes in fix-cache-and-waterfall
. Just wanted a way to see data locally. After caching ME8675-309
to a local table, waterfall
produced the same image that exists on the Pi currently. This is good; the data produced locally, and stored locally, produces images that are the same as data pulled down from Directus. v3 is looking good.
We converted
start
andend
toint64
values, but the schema saysTEXT
.We can "fix" this for now by making the JSON unmarshaller aware that the number is stored as a string. It will then unmarshal correctly. However, this is not the "right" fix. We should instead flip the schema over to
INTEGER
.We... can't do that through the Directus web interface; at least, a cursory glance suggests we cannot. However, if we flip to a v3 set of tables/API/etc., then we could roll a new version that works correctly.
For now, the
durations
struct can be modified as follows:Note the
,string
added to the JSON marshalling portion. This fixes it for this schema.