Skip to content

Phils Blog and Stuff

TELECOMS. VIRTUALIZATION. IT. CODING. and more…

Menu
  • Home
  • Resources
    • Subnet Mask Cheat Sheet
    • Easy Dmarc+Email
    • MX Tool Box
    • LOAD BALANCING & SRE
  • SHOP
  • SOLUTIONS
  • SERVICES
  • Contact Me
Menu

Category: PHP

Home Assistant. Add water meter with PHP+MQTT+YML.

Posted on 06/04/202306/04/2023 by Phil

Here is how to create a simple PHP script to send a water meter and other metrics in to Home assistant. You will need the MQTT addon for this to work. Code for configuration.yml PHP Code to push a meter reading in to Home Assistant. You will need the package phpMQTT from git hub https://github.com/bluerhinos/phpMQTT…

Read more

A simple link shortener.. Fun little project…

Posted on 14/03/202313/03/2023 by Phil

We have all seen and used those URL shorting sites. It takes a very long link and converts it to a short link for emailing. When you click the short link it takes you to the link website address. Below I thought I would make my own. Feel free to use the below to make…

Read more

A Simple Load Balancer. Also Monitors Node Stats.

Posted on 13/03/202313/03/2023 by Phil

Below i document how to make a simple Load Balancer. This load balancer uses HAProxy and monitors the health of a server using a script. If the health of the server goes down, HAProxy Removes the Node from the “Cluster”. Below is the HAProxy Config. Below is the PHP Script running on the servers to…

Read more

Install Observium and PHP WeatherMaps on Debian 11.

Posted on 09/03/202309/03/2023 by Phil

Observium Installation You may need to install wget on bare installations Grab Observium installation script and run it. WeatherMap installation and configuration log on to gui “http://[IP_Address]/weathermap/editor.php” and make a new weather map “network.conf” click on “map properties. In “Output Image Filename” > “network.png”. In “Output HTML Filename” > “maps/network.html”. Once you have created a…

Read more

POSTS

  • Home Assistant. Add water meter with PHP+MQTT+YML.
  • Automating your home with Home Assistant. Initial install and config (Hyper-V).
  • The importance of setting up email security correctly.
  • Automate Debian installations with Seed, DHCP and Nginx.
  • A simple link shortener.. Fun little project…

WORD CLOUD

3CX 3CX Phone System Apache Asterisk Cacti CentOS CRM DHCP DNS Email Fail over Failover File System Firewall FreeBSD FreeNAS FXO IAX install IP IP PBX Linux M0n0wall Nottingham Open Source PBX PFSense PHP Router Server SIP snom SSH TrixBox ubuntu VLAN Voice VoIP VPN vyatta WAN Website WiFi yealink ZFS

© 2025 Phils Blog and Stuff | Powered by Superbs Personal Blog theme