Skip to content

Commit

Permalink
Don't call ipinfo.io at start
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Aug 1, 2014
1 parent aff4324 commit cad7dc9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
8 changes: 6 additions & 2 deletions I-Nex/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ Public Sub Form_Open()
Object.Call(FGraphic, "_check")
Logs("Check sound cards", Logger.Info)
Object.Call(Asound_Drives, "_inits")
Logs("Call To ipinfo.io for network settings", Logger.Info)
Object.Call(Network, "IP_INFO")
Logs("Check for default display manager", Logger.Info)
If default_display_manager = True Then
Label4.Visible = True
Expand Down Expand Up @@ -1157,3 +1155,9 @@ Public Sub Button18_Click()
FSystemInfo.Show

End

Public Sub Button19_Click()

Network.IP_INFO()

End
9 changes: 7 additions & 2 deletions I-Nex/i-nex/.src/Finfosys.form
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@
}
}
{ Button9 Button
Move(273,448,189,28)
Move(273,455,189,21)
Font = Font["Bold,8"]
Text = ("Show Receive and Transmit")
}
Expand Down Expand Up @@ -1972,7 +1972,7 @@
Border = Border.Raised
}
{ Frame1 Frame
Move(7,259,455,189)
Move(7,259,455,196)
Text = ("ipinfo.io")
{ Label238 Label
Move(98,147,336,21)
Expand Down Expand Up @@ -2069,6 +2069,11 @@
Move(413,126,21,21)
Picture = Picture["AppIcons/applications-internet.png"]
}
{ Button19 Button
Move(21,168,112,21)
Font = Font["8"]
Text = ("Call to ipinfo.io")
}
}
Index = 9
Text = "Battery"
Expand Down
2 changes: 2 additions & 0 deletions I-Nex/i-nex/.src/Network.module
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ End
Public Function IP_INFO()
Dim IPINFOIO_BUF As String
Dim IPINFOIO_JSON As Collection
Inc Application.Busy
Try Exec ["curl", "ipinfo.io"] To IPINFOIO_BUF
Try IPINFOIO_JSON = JSON.Decode(IPINFOIO_BUF)
Dec Application.Busy
'https://www.google.com/maps/search/54.6052,18.2355
Try Finfosys.Label93.Text = IPINFOIO_JSON["ip"]
Try Finfosys.Label233.Text = IPINFOIO_JSON["hostname"]
Expand Down
2 changes: 1 addition & 1 deletion I-Nex/i-nex/.startup
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MStart
I-Nex
0
0
7.2.1
7.4.0

gb.image
gb.qt4
Expand Down

0 comments on commit cad7dc9

Please sign in to comment.