• 0 Posts
  • 208 Comments
Joined 1 年前
cake
Cake day: 2023年12月24日

help-circle






  • MadhuGururajan@programming.devtoMemes@lemmy.mlSpot the difference
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    8 天前

    Sure Mr. Dessalines. Communists are infallible and we should all defer to the geniuses who have to hide on the internet like vampires from the sun. there’s no point in history where a communist was not infalible! You think my praise of those specific people and my detestation of the same people can’t co-exist? A revolution is not without bloodshed. But it’s folly to think you’re perfect just because you’re a communist. Remember you’re human first.









  • might I suggest the following:

    1. Sensor Daemon and webserver can be in the same language/stack. Consider even making them the same program. your webserver needs to run always if you want users to be able to go to your site and get the output.
    2. Use a database like sqlite instead of a raw json dump as querying for data from your webserver becomes flexible (especially for charting purposes)
    3. Note: you can store json as a column in sqlite as well if you are concerned that you have too deep of nested data. just store them with keys that are required for your charts.
    4. you can achieve the circular buffer functionality naively by periodically checking number of rows > threshold and deleting the rows if it is exceeded.