Skip to content

dirkclemens/energy-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

energy-swift

macOS & iOS Swift (5.x) App using MQTT to show data from some of my energy sources (first approach)

Data sources:

  • Growatt inverter
  • go-eCharger Homefix
  • OBIS / SML reader (esp8266 based)

screenshot

Building using xcode 14

Install using Carthage (https://github.com/Carthage/Carthage) by adding the following lines to your Cartfile:

github "emqx/CocoaMQTT" "master"
github "SwiftyJSON/SwiftyJSON" ~> 4.0

Then, run the following command:

carthage update --platform macOS,iOS --use-xcframeworks or
carthage update --use-xcframeworks

Integration of the libraries

On your application targets “General” settings tab, in the "Frameworks, Libraries, and Embedded content" section, drag and drop LibraryName.xcframework, from the Carthage/Build folder on disk. Then select "Embed & Sign".

framworks-512x172