AneInfo

AneInfo calls and usage


Introduction

  • Author : @JunesiPhone
  • GitHub : Link
  • Patreon : Link
  • Support : Email
  • Widgets : Discontinued
  • Tweak Download : AneInfo 1.2
  • Example Widget : Download
  • Buy me a coffee? : Donate
  • Discontinued. There will be no further development to this tweak.
    I suggest using XenHTML and XenInfo XenInfo

    AneInfo gathers info from the weather.framework you must have the Weather.app installed and have weather set to always in location settings. (iPX users) setting to always isn't a must but highly recommended.

This documentation is to help you create a AneInfo widgets. AnemoneHTML is included in Anemone. It allows you to create widgets that go behind the springboard icons. These widgets are limited to the information they can provide. AneInfo solves this by injecting more useful info.

Electra Beta!: Put all files in SBInject in SBInject, All Files in PreferenceBundles in PreferenceBundles, all files in PreferenceLoader/Preferences in PreferenceLoader/Preferences

Electra Cydia and all other jailbreaks: Put all files in SBInject in /Library/MobileSubstrate/DynamicLibraries, All Files in PreferenceBundles in /Library/PreferenceBundles, all files in PreferenceLoader/Preferences in /Library/PreferenceLoader/Preferences

Getting Started Scroll to top

You do not need to include any external frameworks to use AneInfo. If you have the tweak installed it will automatically detect any AnemoneHTML widget selected.

The Code Scroll to top

                                    
                                

mainUpdate This javascript function is called from the Tweak AneInfo. AneInfo will pass a parameter to this function letting it know what it is updating.

                                    
                                

type the parameter will send what it's updating. This is so you don't have to update all your elements you only need to update the elements that need updating.

                                    
                                

All the types that can be sent are. weather, statusbar, battery, reminders, events, music, and signinginfo

Info Passed Scroll to top

Weather Information

                                        
                                    
weather.city
info about the current city
weather.temperature
info about the current temperature
weather.low
Returns current low
weather.high
Returns current high
weather.feelsLike
info about the current feels like temperature
weather.condition
info about the current condition
weather.naturalCondition
A detailed string about the current weather conditions
weather.dayForecasts
This is an object that needs to be parsed to return upcoming forecast. JSON.parse(weather.dayForecasts);
weather.latlong
Returns latitude and longitude
weather.celsius
returns true or false
weather.conditionCode
Returns a number for condition. This can be used for icons or converting to text.
weather.updateTimeString
Returns the last time weather was updated.
weather.humidity
Returns current humidity.
weather.dewPoint
Returns current dewpoint.
weather.windChill
Returns current wind chill.
weather.windDirection
Returns wind direction in degrees
weather.windSpeed
Returns current wind speed.
weather.visibility
Returns current visiblility.
weather.sunsetTime
Returns sunset time
weather.sunriseTime
Returns sunrise time
weather.chanceofrain
Returns current chance of rain

Statusbar Information

                                        
                                    
signalBars
Returns amount of signal bars
signalName
Returns operator name
wifiStrength
Returns wifi strength
wifiBars
Returns amount of wifi bars
wifiName
Returns current wifi name
bluetooth
Returns true/false

Battery Information

                                        
                                    
batteryPercent
Returns current percent
batteryCharging
Returns true/false
ramFree
Returns free ram
ramUsed
Returns current ram used
ramAvailable
Returns available ram
ramPhysical
Returns physical ram

Music Information

                                        
                                    
artist
Returns current artist
album
Returns current album
title
Returns current title
isplaying
Returns true/false
artwork
stores image at /var/mobile/Documents/Artwork.jpg

Event Information

                                        
                                    
events
events is an object that contains multiple entries based on how many events

Reminder Information

                                        
                                    
reminders
reminders is an object that contains multiple entries based on how many events

Signing Information

                                        
                                    
signedInfo
reminders is an object that contains multiple entries based on how many signed apps you have. It includes a date in milliseconds that can be converted to any javascript date type.