I mean like, if for example i attach a notification to my battery widget flow... the script for the updated value is..
Code: Select all
global_battery_level = battery_level + "%";
if (battery_status == "1")
{ global_battery_status = "Unknown"; }
else if (battery_status == "2")
{ global_battery_status = "Charging"; }
else if (battery_status == "3")
{ global_battery_status = "Discharging"; }
else if (battery_status == "4")
{ global_battery_status = "Not charging"; }
else if (battery_status == "5")
{ global_battery_status = "Full"; }
if (battery_plugged == "1")
{ global_battery_plugged = "AC adapter"; }
else if (battery_plugged == "2")
{ global_battery_plugged = "USB"; }
else if (battery_plugged == "3")
{ global_battery_plugged = "Wireless"; }
else if (battery_plugged == "0")
{ global_battery_plugged = "Not plugged"; }
if (battery_health == "1")
{ global_battery_health = "Unknown"; }
else if (battery_health == "2")
{ global_battery_health = "Good"; }
else if (battery_health == "3")
{ global_battery_health = "Overheat"; }
else if (battery_health == "4")
{ global_battery_health = "Dead"; }
else if (battery_health == "5")
{ global_battery_health = "Over voltage"; }
else if (battery_health == "6")
{ global_battery_health = "Unspecified failure"; }
else if (battery_health == "7")
{ global_battery_health = "Cold"; }