Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Forget AI, the new buzzword in computing is "quantum".

Uncategorized
7 6 10

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    1 Views
    Commitin programming crimes }:->Few weeks ago I seriously looked to the mine OpenHAB installation and asked a question for myself: "Am I really need it?" Look, I have a few ZigBee devices, which are connected to the my server with the help of ZigBee2MQTT. Thusly, all necessary values and knobs are accessible through the MQTT topics.And I'm using the OpenHAB (big Java application which eats ton's of RAM and constantly swapping) just to:1) Read values from MQTT topic2) Read weather forecast from Open-Meteo through simple REST API endpoints3) Store all the data to the PostgreSQL DB.4) Display these data in the nice Web page which works only in browsers with JS engine.So, basically, I trade tons of RAM and processing power just for a nice web-page with few indicators. While retrieving data from my ZigBee devices processed by the another service.After that thought, I started to think about replacing this monster with small hand-written program, which will not eat 700 MB of RAM. Just Nginx, small FastCGI script on C, which will read values from DB and display them on the simple HTML page. And another small daemon (also written in C) which will take data from MQTT topic (and from REST API of Open-Meteo) and will write them to the DB. And possibly some PGSQL procedures to analyze these data.At least I'll have fun #programming #C #smarthome #selfhosting
  • 0 Votes
    1 Posts
    8 Views
    do you have art? do you want to put it on a website, that *you* own, for cheap-as-free?im writing a program for that! you just drag and drop your art into a folder, and run "galleryify", and it generates html for each image, and adds everything to a thumbnail gallery. you can group with tags and style everything however you want, too.it outputs static html, so you can upload it to neocities or nekoweb or basically any free web host. the tradeoff for being cheap-as-free is that there's no server-side interactions (e.g. no comment section).i need testers! if this sounds good then please comment and let me know your level of comfort with art and with html.https://nycki93.github.io/eleventy-image-gallery/if you just wanna know "the stack", this is made with NodeJS and Eleventy. if that doesn't mean anything to you, dont worry about it.EDIT: wow, a lot of you said you'd be interested in testing! Okay, I've just put some usage instructions up on this page, please try it out and let me know how it goes!https://github.com/nycki93/eleventy-image-gallery/#website #art #code #programming #html #heycohost #eleventy
  • Happy #Halloween

    Uncategorized halloween logic programming boolean
    1
    1
    0 Votes
    1 Posts
    13 Views
    Happy #Halloween#logic #programming #boolean
  • 0 Votes
    3 Posts
    20 Views
    @gepasi Debugging? That's so 1985.