SmartHome
SERIES
🌐 VI • EN[OpenHAB] Share a Vietnamese Lunar Calendar Script for OpenHAB
![[OpenHAB] Share a Vietnamese Lunar Calendar Script for OpenHAB](/images/smarthome/amlich_hu_57d1dab746a7543f.webp)
TABLE OF CONTENTS (Nhấn để xem)
OpenHAB Lunar Calendar
- Vietnamese lunar calendar for OpenHAB by AIoT.io.vn
. The file is based on the original repository:
https://github.com/quangvinh86/SolarLunarCalendar/blob/master/LunarSolar.py. - Adds solar terms, Buddhist calendar dates, and annual holidays and anniversaries using the algorithm by Ho Ngoc Duc.
Requirements
- Download OpenHABLunarCalendar.py.
- Create these items in OpenHAB:
AL_PhatLich- StringAL_ThangNhuan- Number (0 = not a leap month, 1 = leap month)AL_Holiday- StringAL_TietKhi- StringAL_CanChiNam- StringAL_CanChiThang- StringAL_CanChiNgay- StringAL_Today- DateTime
- Edit the information on lines
296and319-326of the script. - Create a rule that runs the script every day at 00:01.
Copy the file to OpenHAB userdata
The default userdata directory is /var/lib/openhab/; adjust it for your installation.
mkdir /var/lib/openhab/amlich
wget -O /var/lib/openhab/amlich/OpenHABLunarCalendar.py https://raw.githubusercontent.com/NghiaMaster/OpenHAB-Lunar-Calendar/refs/heads/main/OpenHABLunarCalendar.py
chown openhab:openhab /var/lib/openhab/amlich/OpenHABLunarCalendar.py
TAGS:
#openhab
Series
•
4 TậpSmartHome
- [OpenHAB] Share a Vietnamese Lunar Calendar Script for OpenHAB Reading
- [OpenHAB] Xiaomi LYWSD03MMC Temperature and Humidity Sensor with ESPHome on ESP32-C3
- [OpenHAB] Energy Meter with PZEM004T and ESPHome on ESP32-C3
- [OpenHAB] Share a Remote-Control Widget for LG WebOS TV
Discussion & Feedback 0
Share your questions, feedback or insights with the community