<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[LogicMachine Forum - Application Store]]></title>
		<link>https://forum.logicmachine.net/</link>
		<description><![CDATA[LogicMachine Forum - https://forum.logicmachine.net]]></description>
		<pubDate>Thu, 15 Oct 2026 13:00:26 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Logic Macihne App Multitasking]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6575</link>
			<pubDate>Thu, 15 Oct 2026 08:46:21 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=3227">isidur</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6575</guid>
			<description><![CDATA[Hello,<br />
Can LogicMachine execute multiple tasks simultaneously using Lua?<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Is it possible to perform multiple operations simultaneously in LogicMachine using Lua scripts?<br />
For example, can we create a new script while simultaneously creating a new object (group address) in the system?<br />
Does LogicMachine support multithreading, asynchronous execution, parallel processing, or coroutines in Lua?<br />
If true multithreading is not supported, is it possible to run multiple independent Lua scripts concurrently using separate processes or background tasks?</blockquote>
]]></description>
			<content:encoded><![CDATA[Hello,<br />
Can LogicMachine execute multiple tasks simultaneously using Lua?<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Is it possible to perform multiple operations simultaneously in LogicMachine using Lua scripts?<br />
For example, can we create a new script while simultaneously creating a new object (group address) in the system?<br />
Does LogicMachine support multithreading, asynchronous execution, parallel processing, or coroutines in Lua?<br />
If true multithreading is not supported, is it possible to run multiple independent Lua scripts concurrently using separate processes or background tasks?</blockquote>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PRISME: energy management: spot price,peak protection,EVcharging,photovoltaics [beta]]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6553</link>
			<pubDate>Wed, 16 Sep 2026 19:41:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=6081">Paulianer</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6553</guid>
			<description><![CDATA[Hello! Here is PRISME, an energy management app for LogicMachine.<br />
<br />
It reads the hourly spot price, the weather forecast and your own meters, and<br />
decides from them when heating, hot water and the EV charger should run:<br />
<br />
1.) Load control on price, lowers setpoints or sheds on expensive hours,<br />
    boosts on cheap ones<br />
2.) Peak protection, sheds load before the hourly average crosses your<br />
    threshold, and keeps you off the next grid tariff step<br />
3.) EV charging, picks the cheapest hours before your deadline, backs off<br />
    when the house draws hard, can prefer hours with expected sun<br />
4.) Solar model, learns your installation's clear-sky curve and adjusts for<br />
    season and cloud<br />
5.) Reports and an event log, every decision with its reason and the change<br />
    it made, all exportable to a spreadsheet<br />
<br />
Price zones for Norway, Sweden, Denmark and Finland. More price zones can be added, just ask  <img src="https://forum.logicmachine.net/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> <br />
Interface in English and Norwegian.<br />
<br />
**This is a beta.** It's been testet in one house, mine. Zaptec, Schneider EVlink Pro<br />
AC and the Victron integration have never been connected to real hardware;<br />
Easee is well tested. Please read the attached README before pointing it at<br />
anything you care about. It covers the requirements, the limitations and what<br />
leaves your house.<br />
<br />
You can see the whole app before wiring up a single address:<br />
**Help → Getting started → Show example data** fills every page with a<br />
fictional house, entirely in your browser.<br />
<br />
Please use this thread for questions, suggestions or wishes. I would especially like<br />
to hear from anyone on a different grid tariff, and from Zaptec, EVlink or<br />
Victron owners as those are the parts I cannot test myself. Any feedback is<br />
more than welcome.<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=5123" target="_blank">hems-0.51.23.ipk</a> (Size: 1.9 MB / Downloads: 1)</div>
<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
&nbsp;&nbsp;<a href="attachment.php?aid=5109" target="_blank">README.txt</a> (Size: 9.39 KB / Downloads: 19)</div>
]]></description>
			<content:encoded><![CDATA[Hello! Here is PRISME, an energy management app for LogicMachine.<br />
<br />
It reads the hourly spot price, the weather forecast and your own meters, and<br />
decides from them when heating, hot water and the EV charger should run:<br />
<br />
1.) Load control on price, lowers setpoints or sheds on expensive hours,<br />
    boosts on cheap ones<br />
2.) Peak protection, sheds load before the hourly average crosses your<br />
    threshold, and keeps you off the next grid tariff step<br />
3.) EV charging, picks the cheapest hours before your deadline, backs off<br />
    when the house draws hard, can prefer hours with expected sun<br />
4.) Solar model, learns your installation's clear-sky curve and adjusts for<br />
    season and cloud<br />
5.) Reports and an event log, every decision with its reason and the change<br />
    it made, all exportable to a spreadsheet<br />
<br />
Price zones for Norway, Sweden, Denmark and Finland. More price zones can be added, just ask  <img src="https://forum.logicmachine.net/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> <br />
Interface in English and Norwegian.<br />
<br />
**This is a beta.** It's been testet in one house, mine. Zaptec, Schneider EVlink Pro<br />
AC and the Victron integration have never been connected to real hardware;<br />
Easee is well tested. Please read the attached README before pointing it at<br />
anything you care about. It covers the requirements, the limitations and what<br />
leaves your house.<br />
<br />
You can see the whole app before wiring up a single address:<br />
**Help → Getting started → Show example data** fills every page with a<br />
fictional house, entirely in your browser.<br />
<br />
Please use this thread for questions, suggestions or wishes. I would especially like<br />
to hear from anyone on a different grid tariff, and from Zaptec, EVlink or<br />
Victron owners as those are the parts I cannot test myself. Any feedback is<br />
more than welcome.<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=5123" target="_blank">hems-0.51.23.ipk</a> (Size: 1.9 MB / Downloads: 1)</div>
<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
&nbsp;&nbsp;<a href="attachment.php?aid=5109" target="_blank">README.txt</a> (Size: 9.39 KB / Downloads: 19)</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[LM Home : Settings screen auto-redirects to Cloud before any action is possible]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6542</link>
			<pubDate>Sat, 05 Sep 2026 01:05:21 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=11">savaskorkmaz</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6542</guid>
			<description><![CDATA[Hi,<br />
We have two issues with the LM Home app. Short video attached (9 s).<br />
<span style="font-weight: bold;" class="mycode_b">1. Settings screen does not stay open — auto-redirects to Cloud/local page</span><br />
On an LM Home installation where settings have already been entered (cloud info entered, or an LM added, or only partially configured), we cannot change anything afterwards. This is not about first setup — it is about modifying an existing setup.<br />
Steps to reproduce (see video):<br />
<ol type="1" class="mycode_list"><li>Long-press the LM Home icon → tap <span style="font-weight: bold;" class="mycode_b">Settings</span>.<br />
</li>
<li>The settings menu appears (Add LM automatically / Add LM manually / Remove LM / Clear credentials / Clear configuration).<br />
</li>
<li>Within about one second, the app shows "Connecting to LM cloud" and jumps to the LogicMachine Cloud login page on its own — before we can tap anything.<br />
</li>
</ol>
Expected behaviour: once the Settings screen is open, the app should not auto-redirect to Cloud or to the local page in any way until the user leaves the Settings screen themselves.<br />
<span style="font-weight: bold;" class="mycode_b">2. Feature request: "Local only" option in Settings</span><br />
Please add a checkbox in Settings: <span style="font-weight: bold;" class="mycode_b">"Local only"</span>. When it is selected:<ul class="mycode_list"><li>The app should not ask about Cloud at all.<br />
</li>
<li>If the local LM is reachable → open the page bound to the user account.<br />
</li>
<li>If the local LM is not reachable → show a message on the page such as <span style="font-style: italic;" class="mycode_i">"You are currently not on the local network"</span>.<br />
</li>
</ul>
Local only is a MUST thing for commercial projects. <br />
Thanks<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
&nbsp;&nbsp;<a href="attachment.php?aid=5099" target="_blank">LM Home bug.zip</a> (Size: 1.13 MB / Downloads: 6)</div>
]]></description>
			<content:encoded><![CDATA[Hi,<br />
We have two issues with the LM Home app. Short video attached (9 s).<br />
<span style="font-weight: bold;" class="mycode_b">1. Settings screen does not stay open — auto-redirects to Cloud/local page</span><br />
On an LM Home installation where settings have already been entered (cloud info entered, or an LM added, or only partially configured), we cannot change anything afterwards. This is not about first setup — it is about modifying an existing setup.<br />
Steps to reproduce (see video):<br />
<ol type="1" class="mycode_list"><li>Long-press the LM Home icon → tap <span style="font-weight: bold;" class="mycode_b">Settings</span>.<br />
</li>
<li>The settings menu appears (Add LM automatically / Add LM manually / Remove LM / Clear credentials / Clear configuration).<br />
</li>
<li>Within about one second, the app shows "Connecting to LM cloud" and jumps to the LogicMachine Cloud login page on its own — before we can tap anything.<br />
</li>
</ol>
Expected behaviour: once the Settings screen is open, the app should not auto-redirect to Cloud or to the local page in any way until the user leaves the Settings screen themselves.<br />
<span style="font-weight: bold;" class="mycode_b">2. Feature request: "Local only" option in Settings</span><br />
Please add a checkbox in Settings: <span style="font-weight: bold;" class="mycode_b">"Local only"</span>. When it is selected:<ul class="mycode_list"><li>The app should not ask about Cloud at all.<br />
</li>
<li>If the local LM is reachable → open the page bound to the user account.<br />
</li>
<li>If the local LM is not reachable → show a message on the page such as <span style="font-style: italic;" class="mycode_i">"You are currently not on the local network"</span>.<br />
</li>
</ul>
Local only is a MUST thing for commercial projects. <br />
Thanks<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
&nbsp;&nbsp;<a href="attachment.php?aid=5099" target="_blank">LM Home bug.zip</a> (Size: 1.13 MB / Downloads: 6)</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[System load installation file]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6490</link>
			<pubDate>Mon, 29 Jun 2026 11:44:11 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=180">stonecroft</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6490</guid>
			<description><![CDATA[Hello.<br />
<br />
I have a installation that isn't connected to internet and I need the installation file for the app system load.<br />
<br />
<br />
Best Regards Jonas]]></description>
			<content:encoded><![CDATA[Hello.<br />
<br />
I have a installation that isn't connected to internet and I need the installation file for the app system load.<br />
<br />
<br />
Best Regards Jonas]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[HomeKit App with Apple TV / HomePod]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6480</link>
			<pubDate>Tue, 23 Jun 2026 02:08:51 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=192">s.prathmesh</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6480</guid>
			<description><![CDATA[Hello,<br />
LogicMachine5Lp has been configured with HomeKit app in it, and its been working as expected. However, at times there are situations wherein there is no response from LM and HomeKit app shows no response with all exclamatory marks. Any particular reason why this happens?<br />
<br />
Since there is a limit of 150 devices in HomeKit app, we are exploring Apple TV / HomePod option. Is there any special configuration needed once TV/HP is logged in with same Apple ID as iPhone? Is there a automatic transfer of configuration from LM to TV/HP? Who shall be the master and slave here?<br />
<br />
PS - Network has been stable and rest configuration in LM is working fine too, lot of scenes and HVAC BACnet integration with KNX as backbone.]]></description>
			<content:encoded><![CDATA[Hello,<br />
LogicMachine5Lp has been configured with HomeKit app in it, and its been working as expected. However, at times there are situations wherein there is no response from LM and HomeKit app shows no response with all exclamatory marks. Any particular reason why this happens?<br />
<br />
Since there is a limit of 150 devices in HomeKit app, we are exploring Apple TV / HomePod option. Is there any special configuration needed once TV/HP is logged in with same Apple ID as iPhone? Is there a automatic transfer of configuration from LM to TV/HP? Who shall be the master and slave here?<br />
<br />
PS - Network has been stable and rest configuration in LM is working fine too, lot of scenes and HVAC BACnet integration with KNX as backbone.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Wiser App crashing consistently following recent update]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6479</link>
			<pubDate>Sun, 21 Jun 2026 06:48:20 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=3061">Nir70</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6479</guid>
			<description><![CDATA[Hi, I am writing to report a critical issue with the Wiser app. in  Android   The application was working perfectly until the most recent update. Since the update, the app crashes immediately upon launch and is completely unusable.<br />
I have performed all necessary troubleshooting steps, including:<ul class="mycode_list"><li>Completely uninstalling and reinstalling the application.<br />
</li>
<li>Clearing all app cache and data.<br />
</li>
<li>Restarting both my mobile device and the Wiser hub.<br />
</li>
</ul>
I have verified that my home system is functioning correctly when accessed via local IP through a browser, which confirms that the issue is strictly related to the recent app update.<br />
Since this started immediately following the latest update, it appears to be a regression in the new version. Could you please investigate this or provide a stable path to restore functionality?<br />
Device: S25 FE Android  "Latest version from App Store/Play Store"<br />
Thanks, Nir]]></description>
			<content:encoded><![CDATA[Hi, I am writing to report a critical issue with the Wiser app. in  Android   The application was working perfectly until the most recent update. Since the update, the app crashes immediately upon launch and is completely unusable.<br />
I have performed all necessary troubleshooting steps, including:<ul class="mycode_list"><li>Completely uninstalling and reinstalling the application.<br />
</li>
<li>Clearing all app cache and data.<br />
</li>
<li>Restarting both my mobile device and the Wiser hub.<br />
</li>
</ul>
I have verified that my home system is functioning correctly when accessed via local IP through a browser, which confirms that the issue is strictly related to the recent app update.<br />
Since this started immediately following the latest update, it appears to be a regression in the new version. Could you please investigate this or provide a stable path to restore functionality?<br />
Device: S25 FE Android  "Latest version from App Store/Play Store"<br />
Thanks, Nir]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[User access app - Beta]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6469</link>
			<pubDate>Fri, 12 Jun 2026 12:16:42 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=696">Daniel</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6469</guid>
			<description><![CDATA[Please find new User access app for testing. <br />
<br />
The app during testing will coexist alongside the existing one. This version is just called User. Stable version will override the old one. <br />
Main difference: <br />
- User can see only users he created.<br />
- User can create new users only from permission rights he has.  <br />
- The app is mobile friendly. <br />
- The access period is checked once a minute. The access period can be only start, end or both. <br />
- The app will highlight common errors and will force certain settings to make sure apps settings are correct. <br />
- Cloud is automatically sync on each save. <br />
<br />

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5024" target="_blank">Screenshot 2026-06-15 at 10-33-15 Users.png</a> (Size: 22.28 KB / Downloads: 110)</div>
<br />

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5026" target="_blank">Screenshot 2026-06-15 at 10-33-44 Users.png</a> (Size: 90.18 KB / Downloads: 110)</div>
<br />
<br />

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=5019" target="_blank">users-20260612-3.ipk</a> (Size: 212.51 KB / Downloads: 24)</div>
]]></description>
			<content:encoded><![CDATA[Please find new User access app for testing. <br />
<br />
The app during testing will coexist alongside the existing one. This version is just called User. Stable version will override the old one. <br />
Main difference: <br />
- User can see only users he created.<br />
- User can create new users only from permission rights he has.  <br />
- The app is mobile friendly. <br />
- The access period is checked once a minute. The access period can be only start, end or both. <br />
- The app will highlight common errors and will force certain settings to make sure apps settings are correct. <br />
- Cloud is automatically sync on each save. <br />
<br />

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5024" target="_blank">Screenshot 2026-06-15 at 10-33-15 Users.png</a> (Size: 22.28 KB / Downloads: 110)</div>
<br />

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5026" target="_blank">Screenshot 2026-06-15 at 10-33-44 Users.png</a> (Size: 90.18 KB / Downloads: 110)</div>
<br />
<br />

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=5019" target="_blank">users-20260612-3.ipk</a> (Size: 212.51 KB / Downloads: 24)</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[LM Wall Ambient Pm 2.5 Sensor]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6464</link>
			<pubDate>Thu, 11 Jun 2026 06:43:37 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=4274">Ranjeet</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6464</guid>
			<description><![CDATA[Hii Sir,<br />
<br />
I want Add Pm2.5 sensor app. Could You Suggest Us How to Configure It Because It is not showing in LM Wall Section.]]></description>
			<content:encoded><![CDATA[Hii Sir,<br />
<br />
I want Add Pm2.5 sensor app. Could You Suggest Us How to Configure It Because It is not showing in LM Wall Section.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Philips Hue App]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6446</link>
			<pubDate>Tue, 09 Jun 2026 05:03:44 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=5952">rts</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6446</guid>
			<description><![CDATA[Hi,<br />
<br />
I'm sharing an app for Philips hue. I tested it on my own installation with a Hue v2. <br />
I don't have many Zigbee lights and main reason was to integrate 2 ZGP devices. <br />
<br />
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Current package: </span>philips-hue_0.3.52_all.ipk</span></span><br />
<br />
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Features</span></span></span><ul class="mycode_list"><li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Push-link pairing with a local Hue Bridge</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Local mDNS bridge discovery, with manual IP entry fallback</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Classic-first hybrid mode, classic-only mode, and API v2 mode</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Discovery and sync for lights, groups/rooms/zones, scenes, and control devices/sensors</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">LM object creation from the app UI</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Separate command and status group addresses</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Button transformations for KNX writes: toggle, on, off, fixed value</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Optional API v2 eventstream support, with classic fallback for button handling when needed</span></span><br />
</li>
</ul>
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Install</span></span></span><br />
<ol type="1" class="mycode_list"><li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Install the <span style="font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;" class="mycode_font">.ipk</span> from <span style="font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;" class="mycode_font">Apps</span></span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Open the Hue app</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Use Discover Bridge or enter the bridge IP manually</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Press the bridge button and click Pair Bridge</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Refresh and create the LM objects you want</span></span><br />
</li>
</ol>
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Notes</span></span></span><ul class="mycode_list"><li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Default mode is hybrid and is the safest starting point</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">API v2 eventstream support is included, but in my setup it is not fully reliable yet and can create heavier system load, so hybrid/classic operation is currently the safer choice</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Tested on my own live Hue + LogicMachine setup</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">License: MIT</span></span><br />
</li>
</ul>
<br />
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Happy to hear feedback if anyone tests it on other Hue bridge/device combinations.</span>
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=4987" target="_blank">philips-hue_0.3.52_all.ipk</a> (Size: 1.04 MB / Downloads: 23)</div>

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5001" target="_blank">bridge pair.png</a> (Size: 27.67 KB / Downloads: 106)</div>

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5003" target="_blank">light.png</a> (Size: 57.46 KB / Downloads: 106)</div>

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5004" target="_blank">button.png</a> (Size: 26.38 KB / Downloads: 105)</div>
</span><br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5000" target="_blank">hue overview.png</a> (Size: 106.29 KB / Downloads: 104)</div>
<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5002" target="_blank">advanced runtime.png</a> (Size: 21.22 KB / Downloads: 104)</div>
]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I'm sharing an app for Philips hue. I tested it on my own installation with a Hue v2. <br />
I don't have many Zigbee lights and main reason was to integrate 2 ZGP devices. <br />
<br />
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Current package: </span>philips-hue_0.3.52_all.ipk</span></span><br />
<br />
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Features</span></span></span><ul class="mycode_list"><li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Push-link pairing with a local Hue Bridge</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Local mDNS bridge discovery, with manual IP entry fallback</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Classic-first hybrid mode, classic-only mode, and API v2 mode</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Discovery and sync for lights, groups/rooms/zones, scenes, and control devices/sensors</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">LM object creation from the app UI</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Separate command and status group addresses</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Button transformations for KNX writes: toggle, on, off, fixed value</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Optional API v2 eventstream support, with classic fallback for button handling when needed</span></span><br />
</li>
</ul>
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Install</span></span></span><br />
<ol type="1" class="mycode_list"><li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Install the <span style="font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;" class="mycode_font">.ipk</span> from <span style="font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;" class="mycode_font">Apps</span></span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Open the Hue app</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Use Discover Bridge or enter the bridge IP manually</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Press the bridge button and click Pair Bridge</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Refresh and create the LM objects you want</span></span><br />
</li>
</ol>
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">Notes</span></span></span><ul class="mycode_list"><li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Default mode is hybrid and is the safest starting point</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">API v2 eventstream support is included, but in my setup it is not fully reliable yet and can create heavier system load, so hybrid/classic operation is currently the safer choice</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Tested on my own live Hue + LogicMachine setup</span></span><br />
</li>
<li><span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">License: MIT</span></span><br />
</li>
</ul>
<br />
<span style="color: #1a1c1f;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;" class="mycode_font">Happy to hear feedback if anyone tests it on other Hue bridge/device combinations.</span>
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=4987" target="_blank">philips-hue_0.3.52_all.ipk</a> (Size: 1.04 MB / Downloads: 23)</div>

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5001" target="_blank">bridge pair.png</a> (Size: 27.67 KB / Downloads: 106)</div>

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5003" target="_blank">light.png</a> (Size: 57.46 KB / Downloads: 106)</div>

<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5004" target="_blank">button.png</a> (Size: 26.38 KB / Downloads: 105)</div>
</span><br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5000" target="_blank">hue overview.png</a> (Size: 106.29 KB / Downloads: 104)</div>
<br />
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
&nbsp;&nbsp;<a href="attachment.php?aid=5002" target="_blank">advanced runtime.png</a> (Size: 21.22 KB / Downloads: 104)</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Samsung Tv App]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6441</link>
			<pubDate>Tue, 26 May 2026 11:19:16 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=5952">rts</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6441</guid>
			<description><![CDATA[Hi all,<br />
<br />
I’m sharing a Samsung TV app for LogicMachine.<br />
<br />
Current version: 0.1.16<br />
<br />
Main features:<br />
- Samsung TV control from LogicMachine<br />
- Local LAN mode and SmartThings mode<br />
- power, transport and volume-style controls<br />
- KNX object sync for TV control/status<br />
- per-object GA editing in the app<br />
<br />
Notes:<br />
- richer feedback/KNX objects are available in SmartThings mode<br />
- SmartThings mode is included, but I have not tested it myself yet<br />
- Local LAN mode is supported, but it uses an unofficial control path<br />
- SmartThings PAT is stored in LM app config, so please keep that in mind<br />
- built with Codex<br />
<br />
This is an unofficial community app. Samsung, SmartThings and LogicMachine names/trademarks belong to their respective owners.
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=4983" target="_blank">samsung-tizen-tv_0.1.16_all.ipk</a> (Size: 30.87 KB / Downloads: 13)</div>
]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
I’m sharing a Samsung TV app for LogicMachine.<br />
<br />
Current version: 0.1.16<br />
<br />
Main features:<br />
- Samsung TV control from LogicMachine<br />
- Local LAN mode and SmartThings mode<br />
- power, transport and volume-style controls<br />
- KNX object sync for TV control/status<br />
- per-object GA editing in the app<br />
<br />
Notes:<br />
- richer feedback/KNX objects are available in SmartThings mode<br />
- SmartThings mode is included, but I have not tested it myself yet<br />
- Local LAN mode is supported, but it uses an unofficial control path<br />
- SmartThings PAT is stored in LM app config, so please keep that in mind<br />
- built with Codex<br />
<br />
This is an unofficial community app. Samsung, SmartThings and LogicMachine names/trademarks belong to their respective owners.
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=4983" target="_blank">samsung-tizen-tv_0.1.16_all.ipk</a> (Size: 30.87 KB / Downloads: 13)</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Streaming Radio App]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6438</link>
			<pubDate>Sat, 23 May 2026 04:32:14 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=5952">rts</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6438</guid>
			<description><![CDATA[Hi all,<br />
<br />
I’m sharing Streaming Radio App for LogicMachine.<br />
<br />
It’s a standalone LM app for internet radio / streaming presets, with:<br />
- browser “Play Here” playback<br />
- external player handoff<br />
- built-in station search/import from iHeart and Radio Browser<br />
- local Google Cast handoff with volume/mute control<br />
- AirPlay handoff in supported Apple browsers<br />
<br />
It installs as a normal LogicMachine app and is opened from the Apps section.<br />
It is not integrated into the stock LM visu by default, but it can be linked or integrated into a custom visu.<br />
<br />
I’d appreciate feedback.<br />
<br />
Disclaimer:<br />
This is an unofficial community app for LogicMachine. LogicMachine, iHeartRadio, Google Cast, AirPlay and other referenced names/trademarks belong to their respective owners. This project is not affiliated with or endorsed by those companies.
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=4981" target="_blank">streaming-radio_0.3.5_all.ipk</a> (Size: 164.6 KB / Downloads: 9)</div>
]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
I’m sharing Streaming Radio App for LogicMachine.<br />
<br />
It’s a standalone LM app for internet radio / streaming presets, with:<br />
- browser “Play Here” playback<br />
- external player handoff<br />
- built-in station search/import from iHeart and Radio Browser<br />
- local Google Cast handoff with volume/mute control<br />
- AirPlay handoff in supported Apple browsers<br />
<br />
It installs as a normal LogicMachine app and is opened from the Apps section.<br />
It is not integrated into the stock LM visu by default, but it can be linked or integrated into a custom visu.<br />
<br />
I’d appreciate feedback.<br />
<br />
Disclaimer:<br />
This is an unofficial community app for LogicMachine. LogicMachine, iHeartRadio, Google Cast, AirPlay and other referenced names/trademarks belong to their respective owners. This project is not affiliated with or endorsed by those companies.
<div>
<img src="https://forum.logicmachine.net/images/attachtypes/zip.png" title="IPK file" border="0" alt=".ipk" />
&nbsp;&nbsp;<a href="attachment.php?aid=4981" target="_blank">streaming-radio_0.3.5_all.ipk</a> (Size: 164.6 KB / Downloads: 9)</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Custom Application Files Not Included in Backup (config.json)]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6371</link>
			<pubDate>Fri, 27 Mar 2026 13:22:48 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=11">savaskorkmaz</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6371</guid>
			<description><![CDATA[Hello,<br />
We have developed a custom application for Logic Machine, and our file structure is as follows:<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">/cron/our_app/</span><ul class="mycode_list"><li>hourly.lua <br />
</li>
<li>hourly.sh <br />
</li>
</ul>
</li>
<li><span style="font-weight: bold;" class="mycode_b">/data/our_app/</span><ul class="mycode_list"><li>index.lp <br />
</li>
<li>icon.png <br />
</li>
<li>config.json <br />
</li>
</ul>
</li>
<li><span style="font-weight: bold;" class="mycode_b">/libs/our_app/</span><ul class="mycode_list"><li>(two Lua library files) <br />
</li>
</ul>
</li>
</ul>
In our application, project-specific data is stored inside the <span style="font-weight: bold;" class="mycode_b">config.json</span> file located in the <span style="font-weight: bold;" class="mycode_b">/data/our_app/</span> directory.<br />
However, when we perform a full Logic Machine backup, none of our application-related data is included in the backup. Specifically, the <span style="font-weight: bold;" class="mycode_b">config.json</span> file is not backed up.<br />
What do we need to do to ensure that this <span style="font-weight: bold;" class="mycode_b">config.json</span> file is included in the backup?<br />
Thank you.]]></description>
			<content:encoded><![CDATA[Hello,<br />
We have developed a custom application for Logic Machine, and our file structure is as follows:<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">/cron/our_app/</span><ul class="mycode_list"><li>hourly.lua <br />
</li>
<li>hourly.sh <br />
</li>
</ul>
</li>
<li><span style="font-weight: bold;" class="mycode_b">/data/our_app/</span><ul class="mycode_list"><li>index.lp <br />
</li>
<li>icon.png <br />
</li>
<li>config.json <br />
</li>
</ul>
</li>
<li><span style="font-weight: bold;" class="mycode_b">/libs/our_app/</span><ul class="mycode_list"><li>(two Lua library files) <br />
</li>
</ul>
</li>
</ul>
In our application, project-specific data is stored inside the <span style="font-weight: bold;" class="mycode_b">config.json</span> file located in the <span style="font-weight: bold;" class="mycode_b">/data/our_app/</span> directory.<br />
However, when we perform a full Logic Machine backup, none of our application-related data is included in the backup. Specifically, the <span style="font-weight: bold;" class="mycode_b">config.json</span> file is not backed up.<br />
What do we need to do to ensure that this <span style="font-weight: bold;" class="mycode_b">config.json</span> file is included in the backup?<br />
Thank you.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[email via application]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6362</link>
			<pubDate>Tue, 24 Mar 2026 23:09:48 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=11">savaskorkmaz</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6362</guid>
			<description><![CDATA[Hello, one of the features of the application we are developing is to periodically send an email with a CSV report attached. We implemented this using a script, and it works very successfully.<br />
However, when we tried to embed this functionality into the application's index.lp file, we were unable to send even a plain email, let alone one with an attachment. This is the same Logic Machine where the email works perfectly fine via scripts.<br />
I am sharing the working script below. How can we properly integrate this into the application?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>--Gmail (smtp) username
user = '***@gmail.com'

--Gmail (smtp) password
password = '***'

--From
from = '&lt;' .. user .. '&gt;'
alias_from = 'gonderenhesap@gmail.com'

--REceiver
to = '***@***.com'
alias_to = '***@***.com'

--Email subject
subjectpart1 = 'Alarmlar'
subjectpart2 = 'Logic Machine Tarafindan Gonderildi'

--Message
epilogue = 'Mesajin sonu'

-- Get all alerts from DB
alerts_table = db:getall('SELECT * FROM alerts')

-- csv buffer
buffer = {}
-- format csv row
csv = string.format('%q,%q,%q', "ID", "ALERT", "ADDED TO LIST")
-- add to buffer
table.insert(buffer, csv)
-- add empty line to buffer
table.insert(buffer, "")

-- Loop through alerts_table
for _, alerts in ipairs(alerts_table) do

  -- format csv row
  csv = string.format('%q,%q,%q', alerts.id, alerts.alert, os.date("%x %X", alerts.alerttime))
  -- add to buffer
  table.insert(buffer, csv)
end

--Create table to include mail settings
local settings = {
    from = from,
    rcpt = to,
    user = user,
    password = password,
    server = 'smtp.gmail.com',
    port = 465,
    secure = 'sslv23',
}

--Create attachment inside FTP server
src = 'AlertExport_'.. os.date('%Y-%m-%d %H#%M#%S') .. '.csv'
dst = '/home/ftp/' .. src
log(io.writefile(dst, buffer))
log("file created")
log(dst)
--Create subject
subject = subjectpart1 .. ": " .. src .. " " .. subjectpart2

--Load required modules to send email with attachment
local smtp = require("socket.smtp")
local mime = require("mime")
local ltn12 = require("ltn12")
--Create e-mail header
settings.source = smtp.message{
headers = {
          from = '' .. alias_from .. ' ' .. from .. '',
          to = '' .. alias_to .. ' ' .. to .. '',
          subject = subject
},
--Load attachment inside body    
body = {
preamble = "",
[1] = {  
        headers = {
          ["content-type"] = 'text/plain',
          ["content-disposition"] = 'attachment; filename="'..src..'"',
          ["content-description"] = '.. src ..',
          ["content-transfer-encoding"] = "BASE64",
        }, 
        body = ltn12.source.chain(
          ltn12.source.file(io.open(dst, "rb")),
          ltn12.filter.chain(
          mime.encode("base64"),
          mime.wrap()
        )
      )
    },
      epilogue = epilogue
  }
}

--Send the email
r, e = smtp.send(settings)

--Create alert when sending gives an error with error message
if (e) then
  log (e)
  log (r)
end

-- FTP Uploader --------------------------------------------------------------------------
-- local ftp = require("socket.ftp")
-- local ltn12 = require("ltn12")


-- f, e = ftp.put{
--  host = "ftp.test.tv.tr", 
--  user = "fgtest@test.tv.tr",
--  password = «ftpsifresi",
--  command = "appe",
--  argument = src,
--  source = ltn12.source.file(io.open(dst, "r"))
-- }

--Delete created file from ftp folder inside HL
os.remove(dst)</code></div></div>]]></description>
			<content:encoded><![CDATA[Hello, one of the features of the application we are developing is to periodically send an email with a CSV report attached. We implemented this using a script, and it works very successfully.<br />
However, when we tried to embed this functionality into the application's index.lp file, we were unable to send even a plain email, let alone one with an attachment. This is the same Logic Machine where the email works perfectly fine via scripts.<br />
I am sharing the working script below. How can we properly integrate this into the application?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>--Gmail (smtp) username
user = '***@gmail.com'

--Gmail (smtp) password
password = '***'

--From
from = '&lt;' .. user .. '&gt;'
alias_from = 'gonderenhesap@gmail.com'

--REceiver
to = '***@***.com'
alias_to = '***@***.com'

--Email subject
subjectpart1 = 'Alarmlar'
subjectpart2 = 'Logic Machine Tarafindan Gonderildi'

--Message
epilogue = 'Mesajin sonu'

-- Get all alerts from DB
alerts_table = db:getall('SELECT * FROM alerts')

-- csv buffer
buffer = {}
-- format csv row
csv = string.format('%q,%q,%q', "ID", "ALERT", "ADDED TO LIST")
-- add to buffer
table.insert(buffer, csv)
-- add empty line to buffer
table.insert(buffer, "")

-- Loop through alerts_table
for _, alerts in ipairs(alerts_table) do

  -- format csv row
  csv = string.format('%q,%q,%q', alerts.id, alerts.alert, os.date("%x %X", alerts.alerttime))
  -- add to buffer
  table.insert(buffer, csv)
end

--Create table to include mail settings
local settings = {
    from = from,
    rcpt = to,
    user = user,
    password = password,
    server = 'smtp.gmail.com',
    port = 465,
    secure = 'sslv23',
}

--Create attachment inside FTP server
src = 'AlertExport_'.. os.date('%Y-%m-%d %H#%M#%S') .. '.csv'
dst = '/home/ftp/' .. src
log(io.writefile(dst, buffer))
log("file created")
log(dst)
--Create subject
subject = subjectpart1 .. ": " .. src .. " " .. subjectpart2

--Load required modules to send email with attachment
local smtp = require("socket.smtp")
local mime = require("mime")
local ltn12 = require("ltn12")
--Create e-mail header
settings.source = smtp.message{
headers = {
          from = '' .. alias_from .. ' ' .. from .. '',
          to = '' .. alias_to .. ' ' .. to .. '',
          subject = subject
},
--Load attachment inside body    
body = {
preamble = "",
[1] = {  
        headers = {
          ["content-type"] = 'text/plain',
          ["content-disposition"] = 'attachment; filename="'..src..'"',
          ["content-description"] = '.. src ..',
          ["content-transfer-encoding"] = "BASE64",
        }, 
        body = ltn12.source.chain(
          ltn12.source.file(io.open(dst, "rb")),
          ltn12.filter.chain(
          mime.encode("base64"),
          mime.wrap()
        )
      )
    },
      epilogue = epilogue
  }
}

--Send the email
r, e = smtp.send(settings)

--Create alert when sending gives an error with error message
if (e) then
  log (e)
  log (r)
end

-- FTP Uploader --------------------------------------------------------------------------
-- local ftp = require("socket.ftp")
-- local ltn12 = require("ltn12")


-- f, e = ftp.put{
--  host = "ftp.test.tv.tr", 
--  user = "fgtest@test.tv.tr",
--  password = «ftpsifresi",
--  command = "appe",
--  argument = src,
--  source = ltn12.source.file(io.open(dst, "r"))
-- }

--Delete created file from ftp folder inside HL
os.remove(dst)</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Backup of FB editor]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6359</link>
			<pubDate>Fri, 20 Mar 2026 08:26:59 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=5127">Davideq</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6359</guid>
			<description><![CDATA[Hello there,<br />
What is the way to backup all the logic diagrams from FB editor?<br />
BR.<br />
Dawid]]></description>
			<content:encoded><![CDATA[Hello there,<br />
What is the way to backup all the logic diagrams from FB editor?<br />
BR.<br />
Dawid]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to prevent FTP access to application files (like default Logic Machine apps)?]]></title>
			<link>https://forum.logicmachine.net/showthread.php?tid=6353</link>
			<pubDate>Mon, 16 Mar 2026 13:00:03 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.logicmachine.net/member.php?action=profile&uid=11">savaskorkmaz</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.logicmachine.net/showthread.php?tid=6353</guid>
			<description><![CDATA[Hello,<br />
When connecting to Logic Machine via FTP, I noticed that the built-in applications inside the <span style="font-weight: bold;" class="mycode_b">/data</span> directory (for example <span style="font-weight: bold;" class="mycode_b">LM Cloud</span>) cannot be opened or browsed. FTP does not allow entering those folders.<br />
However, for the applications that we develop ourselves and install using <span style="font-weight: bold;" class="mycode_b">.ipk packages</span>, the entire application folder is visible via FTP and it is possible to access all files inside the directory.<br />
We would like our application to be protected in the same way as the default Logic Machine applications, so that the contents cannot be accessed or browsed via FTP.<br />
Is there a way to package or configure our application so that the folder is protected and FTP access to its contents is prevented, similar to the built-in Logic Machine apps?<br />
Thank you.]]></description>
			<content:encoded><![CDATA[Hello,<br />
When connecting to Logic Machine via FTP, I noticed that the built-in applications inside the <span style="font-weight: bold;" class="mycode_b">/data</span> directory (for example <span style="font-weight: bold;" class="mycode_b">LM Cloud</span>) cannot be opened or browsed. FTP does not allow entering those folders.<br />
However, for the applications that we develop ourselves and install using <span style="font-weight: bold;" class="mycode_b">.ipk packages</span>, the entire application folder is visible via FTP and it is possible to access all files inside the directory.<br />
We would like our application to be protected in the same way as the default Logic Machine applications, so that the contents cannot be accessed or browsed via FTP.<br />
Is there a way to package or configure our application so that the folder is protected and FTP access to its contents is prevented, similar to the built-in Logic Machine apps?<br />
Thank you.]]></content:encoded>
		</item>
	</channel>
</rss>