Carl Newton

@carlnewton@feddit.uk · Joined ⁨Apr⁩ ⁨2024⁩

Web Developer

Replying to an earlier post

Translating documentation

And translations for the application itself in some cases, so that it can be ran and used in different languages. Human contributions to the language files of the application is what my project needs more than anything else, and if you do speak a non-English language fluently, I’d be very grateful! Here’s how I’ve worded it for my project:

If you would like your language to be supported, please create a new pull request, or a new issue with your language file, using an existing language file as a template.

Replying to @⁨undefinedTruth@lemmy.zip⁩

It’s a PHP container On the front end I’m using Bootstrap and theming it with Catppuccin. The data for the home energy charts are populated from the Home Assistant API. They’re drawn with chart.js. The server stats are pulled from PHP shell_exec commands, and drawn with Bootstrap progress bars. The temperature card also takes data from the Home Assistant API, which also has an endpoint for local weather data. This doesn’t update as often as I’d like. But it compares the outdoor temperature with the reported temperature of my thermostat, and then the messages below that are determined by a comparison of those values. I’m also using HTMX to load each card, and each tab of the energy card separately so that I don’t have no wait on all requests for the dashboard to load. Not that it’s slow - the home assistant API is surprisingly efficient at loading a great deal of logs. When you click my dogs face, she says WOOF WOOF WOOF in a modal to offer me a search with searxng.

hub.docker.comphp - Official Image | Docker HubWhile designed for web development, the PHP scripting language also provides general-purpose use.

Replying to @⁨innocentz3r0@programming.dev⁩

Awesome! I have a very similar setup to you. I recommend installing pi-hole regardless and putting at least Hagezi’s normal block list on it, just for a sane web browsing experience.

Home Assistant is also really good, because it includes a bunch of stuff that you probably wouldn’t first think of. For instance, I’m using its API to request the indoor temperature from my home thermostat and the outdoor temperature from a weather module that it has built in, and I’ve programmed it to let me know when it’s too hot to walk the dog, and when to open/close the windows in the house to keep it as cool as possible in this heatwave.

I’m using LeafWiki for home documentation. A list of things I intend to try hosting, my backup strategy which I’m bound to otherwise forget. I’m thinking about putting all of our meals on there so that we when we get tired of a particular meal for a while, we can return to it when we’re at a loose end with the shopping.

pi-hole.netPi-hole – Network-wide Ad Blocking