supOS-agent

by lvshrd

A lightweight MQTT-based agent system for Factorio that monitors game state (production, inventories, pollution, fluids) and integrates with supOS Node-RED workflows for IIoT applications.

3 months ago
2.0
51
Cheats
Owner:
lvshrd
Source:
https://github.com/lvshrd/Factorio-MQTT-Mod
Homepage:
https://supos-ce-instance1.supos.app:...
License:
MIT
Created:
3 months ago
Latest Version:
1.3.2 (3 months ago)
Factorio version:
2.0
Downloaded by:
51 users

Description:

This mod elevates the original Factorio MQTT Notify, introducing advanced features tailored for Industrial IoT (IIoT) applications. It delivers a robust solution for both monitoring and controlling your Factorio factory via the MQTT protocol and seamless supOS integration.

Key Features:

  • Real-time Game State Monitoring: Gain immediate insights into your factory's operations, including:

    • Machine status and production progress
    • Inventory levels
    • Pollution metrics
    • Fluid system information
    • Production statistics
    • Intelligent Line ID assignment based on substation proximity
    • Precise Electric pole tracking
  • Enhanced MQTT Integration: Experience a more streamlined and informative data flow:

    • Structured JSON messages incorporating Line IDs within topics for clarity.
    • A comprehensive logging system for detailed operational insights.
    • Well-organized topic hierarchy ensuring effortless data access.
    • Example Topic Structure: Sandbox/PowerGeneration/Line-76/generator-1560/electric/current_energy
  • supOS Integration: Unlock powerful automation and control capabilities:

    • Effortless connection with supOS Node-RED workflows.
    • Enablement of sophisticated automated workflows.
    • Real-time factory monitoring and control directly within supOS.

Technical Requirements:

  • Factorio version 2.0 or higher.
  • Python 3.11 required for running the MQTT scripts.
  • An MQTT broker (default configuration targets supos-instance1).
  • An optional supOS Node-RED instance for advanced integration.

This mod is particularly beneficial for:

  • Industrial automation enthusiasts seeking deeper integration.
  • IIoT integration projects demanding robust factory data.
  • Factory monitoring and optimization initiatives.
  • Educational purposes within the realm of industrial automation concepts.
  • Seamless integration with existing industrial control systems.

Important Usage Instructions:

Before using the mod, navigate to the mod directory and extract the contents. Locate and execute the provided batch file. This script will automatically download the necessary dependencies and initiate the publish/subscribe scripts.

Prior to running the batch file, ensure that the Node-RED flow has been deployed. You can find the corresponding JSON file within the docs directory.

For detailed instructions and further information, please refer to the GitHub repository.